public class Course{
	
    //Course类中的属性
	String id;
	String name;
	String location;
	String time;
	double credit;
	int capacity;
	Teacher teacher;
	Student student;
	
	//构造方法
	public Course(String id, String name,String location,String time,double credit,int capacity,Teacher teacher) {
		this.id = id;
		this.name = name;
		this.location = location;
		this.time = time;
		this.credit = credit;
		this.capacity = capacity;
		this.teacher = teacher;
	}
	
	public void showCourseInfo() {
		System.out.println("课程编号："+id);
		System.out.println("课程名称："+name);
		System.out.println("上课地点："+location);
		System.out.println("上课时间："+time);
		System.out.println("学分："+credit);
		System.out.println("课容量："+capacity);
		System.out.println("授课教师："+teacher.name);
	}
}
